  /**
   * Generate time : 2016-03-28 11:23:13
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.cc.domain;

import com.baosight.iplat4j.util.NumberUtils;
import java.math.BigDecimal;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCCProduceproblemPenalty 
 * table comment : 生产问题罚款记录 
 */
public class ZMCCProduceproblemPenalty extends DaoEPBase {

	private String fdKeyId = "";		/* 主键*/
	private String fdSendnoteDepartmentId = "";		/* 开单部门ID*/
	private String fdSendnoteDepartment = "";		/* 开单部门*/
	private String fdSendnoteDate = "";		/* 开单日期*/
	private String fdClassify = "";		/* 罚款分类*/
	private String fdStatus = "草拟";		/* 状态*/
	private BigDecimal fdPenalty = new BigDecimal("0");		/* 罚款金额*/
	private String fdDepartmentId = "";		/* 责任单位ID*/
	private String fdDepartment = "";		/* 责任单位*/
	private String fdPeopleId = "";		/* 责任人ID*/
	private String fdPeopleName = "";		/* 责任人*/
	private String fdReason = "";		/* 罚款原因*/
	private String fdIsSubmit = "否";		/* 已交罚款*/
	private String fdSendnotePersonId = "";		/* 开单人ID*/
	private String fdSendnotePerson = "";		/* 开单人*/
	private String fdRemarks = "";		/* 备注*/


	private String fdRecordId = "";		/* 问题表主键*/
	private String fdHandleId = "";		/* 处理表主键*/
	
	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("主键");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdRecordId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("问题表主键");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdHandleId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("处理表主键");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdSendnoteDepartmentId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("开单部门ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdSendnoteDepartment");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("开单部门");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdSendnoteDate");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("开单日期");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdClassify");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("罚款分类");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdStatus");
	eiColumn.setFieldLength(6);	
	eiColumn.setDescName("状态");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPenalty");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(15);
	eiColumn.setDescName("罚款金额");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDepartmentId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("责任单位ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDepartment");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("责任单位");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPeopleId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("责任人ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPeopleName");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("责任人");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdReason");
	eiColumn.setFieldLength(500);	
	eiColumn.setDescName("罚款原因");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdIsSubmit");
	eiColumn.setFieldLength(5);	
	eiColumn.setDescName("已交罚款");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdSendnotePersonId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("开单人ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdSendnotePerson");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("开单人");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdRemarks");
	eiColumn.setFieldLength(500);	
	eiColumn.setDescName("备注");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZMCCProduceproblemPenalty() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - 主键
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	
	public String getFdRecordId() {
		return fdRecordId;
	}
	public void setFdRecordId(String fdRecordId) {
		this.fdRecordId = fdRecordId;
	}
	public String getFdHandleId() {
		return fdHandleId;
	}
	public void setFdHandleId(String fdHandleId) {
		this.fdHandleId = fdHandleId;
	}
	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	/**
	 * get the fdSendnoteDepartmentId - 开单部门ID
	 * @return the fdSendnoteDepartmentId
	 */
	public String getFdSendnoteDepartmentId() {
		return this.fdSendnoteDepartmentId;
	}
	
	/**
	 * set the fdSendnoteDepartmentId - 开单部门ID
	 */
	public void setFdSendnoteDepartmentId(String fdSendnoteDepartmentId) {
		this.fdSendnoteDepartmentId = fdSendnoteDepartmentId;
	}
	/**
	 * get the fdSendnoteDepartment - 开单部门
	 * @return the fdSendnoteDepartment
	 */
	public String getFdSendnoteDepartment() {
		return this.fdSendnoteDepartment;
	}
	
	/**
	 * set the fdSendnoteDepartment - 开单部门
	 */
	public void setFdSendnoteDepartment(String fdSendnoteDepartment) {
		this.fdSendnoteDepartment = fdSendnoteDepartment;
	}
	/**
	 * get the fdSendnoteDate - 开单日期
	 * @return the fdSendnoteDate
	 */
	public String getFdSendnoteDate() {
		return this.fdSendnoteDate;
	}
	
	/**
	 * set the fdSendnoteDate - 开单日期
	 */
	public void setFdSendnoteDate(String fdSendnoteDate) {
		this.fdSendnoteDate = fdSendnoteDate;
	}
	/**
	 * get the fdClassify - 罚款分类
	 * @return the fdClassify
	 */
	public String getFdClassify() {
		return this.fdClassify;
	}
	
	/**
	 * set the fdClassify - 罚款分类
	 */
	public void setFdClassify(String fdClassify) {
		this.fdClassify = fdClassify;
	}
	/**
	 * get the fdStatus - 状态
	 * @return the fdStatus
	 */
	public String getFdStatus() {
		return this.fdStatus;
	}
	
	/**
	 * set the fdStatus - 状态
	 */
	public void setFdStatus(String fdStatus) {
		this.fdStatus = fdStatus;
	}
	/**
	 * get the fdPenalty - 罚款金额
	 * @return the fdPenalty
	 */
	public BigDecimal getFdPenalty() {
		return this.fdPenalty;
	}
	
	/**
	 * set the fdPenalty - 罚款金额
	 */
	public void setFdPenalty(BigDecimal fdPenalty) {
		this.fdPenalty = fdPenalty;
	}
	/**
	 * get the fdDepartmentId - 责任单位ID
	 * @return the fdDepartmentId
	 */
	public String getFdDepartmentId() {
		return this.fdDepartmentId;
	}
	
	/**
	 * set the fdDepartmentId - 责任单位ID
	 */
	public void setFdDepartmentId(String fdDepartmentId) {
		this.fdDepartmentId = fdDepartmentId;
	}
	/**
	 * get the fdDepartment - 责任单位
	 * @return the fdDepartment
	 */
	public String getFdDepartment() {
		return this.fdDepartment;
	}
	
	/**
	 * set the fdDepartment - 责任单位
	 */
	public void setFdDepartment(String fdDepartment) {
		this.fdDepartment = fdDepartment;
	}
	/**
	 * get the fdPeopleId - 责任人ID
	 * @return the fdPeopleId
	 */
	public String getFdPeopleId() {
		return this.fdPeopleId;
	}
	
	/**
	 * set the fdPeopleId - 责任人ID
	 */
	public void setFdPeopleId(String fdPeopleId) {
		this.fdPeopleId = fdPeopleId;
	}
	/**
	 * get the fdPeopleName - 责任人
	 * @return the fdPeopleName
	 */
	public String getFdPeopleName() {
		return this.fdPeopleName;
	}
	
	/**
	 * set the fdPeopleName - 责任人
	 */
	public void setFdPeopleName(String fdPeopleName) {
		this.fdPeopleName = fdPeopleName;
	}
	/**
	 * get the fdReason - 罚款原因
	 * @return the fdReason
	 */
	public String getFdReason() {
		return this.fdReason;
	}
	
	/**
	 * set the fdReason - 罚款原因
	 */
	public void setFdReason(String fdReason) {
		this.fdReason = fdReason;
	}
	/**
	 * get the fdIsSubmit - 已交罚款
	 * @return the fdIsSubmit
	 */
	public String getFdIsSubmit() {
		return this.fdIsSubmit;
	}
	
	/**
	 * set the fdIsSubmit - 已交罚款
	 */
	public void setFdIsSubmit(String fdIsSubmit) {
		this.fdIsSubmit = fdIsSubmit;
	}
	/**
	 * get the fdSendnotePersonId - 开单人ID
	 * @return the fdSendnotePersonId
	 */
	public String getFdSendnotePersonId() {
		return this.fdSendnotePersonId;
	}
	
	/**
	 * set the fdSendnotePersonId - 开单人ID
	 */
	public void setFdSendnotePersonId(String fdSendnotePersonId) {
		this.fdSendnotePersonId = fdSendnotePersonId;
	}
	/**
	 * get the fdSendnotePerson - 开单人
	 * @return the fdSendnotePerson
	 */
	public String getFdSendnotePerson() {
		return this.fdSendnotePerson;
	}
	
	/**
	 * set the fdSendnotePerson - 开单人
	 */
	public void setFdSendnotePerson(String fdSendnotePerson) {
		this.fdSendnotePerson = fdSendnotePerson;
	}
	/**
	 * get the fdRemarks - 备注
	 * @return the fdRemarks
	 */
	public String getFdRemarks() {
		return this.fdRemarks;
	}
	
	/**
	 * set the fdRemarks - 备注
	 */
	public void setFdRemarks(String fdRemarks) {
		this.fdRemarks = fdRemarks;
	}
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdRecordId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRecordId")), fdRecordId));
		setFdHandleId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdHandleId")), fdHandleId));
		
		
		setFdSendnoteDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSendnoteDepartmentId")), fdSendnoteDepartmentId));
		setFdSendnoteDepartment(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSendnoteDepartment")), fdSendnoteDepartment));
		setFdSendnoteDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSendnoteDate")), fdSendnoteDate));
		setFdClassify(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdClassify")), fdClassify));
		setFdStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdStatus")), fdStatus));
		setFdPenalty(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdPenalty")), fdPenalty));
		setFdDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepartmentId")), fdDepartmentId));
		setFdDepartment(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDepartment")), fdDepartment));
		setFdPeopleId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPeopleId")), fdPeopleId));
		setFdPeopleName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPeopleName")), fdPeopleName));
		setFdReason(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdReason")), fdReason));
		setFdIsSubmit(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdIsSubmit")), fdIsSubmit));
		setFdSendnotePersonId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSendnotePersonId")), fdSendnotePersonId));
		setFdSendnotePerson(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSendnotePerson")), fdSendnotePerson));
		setFdRemarks(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRemarks")), fdRemarks));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdRecordId",StringUtils.toString(fdRecordId, eiMetadata.getMeta("fdRecordId")));	
			map.put("fdHandleId",StringUtils.toString(fdHandleId, eiMetadata.getMeta("fdHandleId")));	
			
			map.put("fdSendnoteDepartmentId",StringUtils.toString(fdSendnoteDepartmentId, eiMetadata.getMeta("fdSendnoteDepartmentId")));	
			map.put("fdSendnoteDepartment",StringUtils.toString(fdSendnoteDepartment, eiMetadata.getMeta("fdSendnoteDepartment")));	
			map.put("fdSendnoteDate",StringUtils.toString(fdSendnoteDate, eiMetadata.getMeta("fdSendnoteDate")));	
			map.put("fdClassify",StringUtils.toString(fdClassify, eiMetadata.getMeta("fdClassify")));	
			map.put("fdStatus",StringUtils.toString(fdStatus, eiMetadata.getMeta("fdStatus")));	
			map.put("fdPenalty",StringUtils.toString(fdPenalty, eiMetadata.getMeta("fdPenalty")));	
			map.put("fdDepartmentId",StringUtils.toString(fdDepartmentId, eiMetadata.getMeta("fdDepartmentId")));	
			map.put("fdDepartment",StringUtils.toString(fdDepartment, eiMetadata.getMeta("fdDepartment")));	
			map.put("fdPeopleId",StringUtils.toString(fdPeopleId, eiMetadata.getMeta("fdPeopleId")));	
			map.put("fdPeopleName",StringUtils.toString(fdPeopleName, eiMetadata.getMeta("fdPeopleName")));	
			map.put("fdReason",StringUtils.toString(fdReason, eiMetadata.getMeta("fdReason")));	
			map.put("fdIsSubmit",StringUtils.toString(fdIsSubmit, eiMetadata.getMeta("fdIsSubmit")));	
			map.put("fdSendnotePersonId",StringUtils.toString(fdSendnotePersonId, eiMetadata.getMeta("fdSendnotePersonId")));	
			map.put("fdSendnotePerson",StringUtils.toString(fdSendnotePerson, eiMetadata.getMeta("fdSendnotePerson")));	
			map.put("fdRemarks",StringUtils.toString(fdRemarks, eiMetadata.getMeta("fdRemarks")));	
			
		return map;
	
	}
}